//
//  NetworkStreamManager.h
//  Maotai
//
//  Created by BO ZHOU on 2020/11/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


// 88kB/s
extern NSString *const GSDownloadNetworkSpeedNotificationKey;
// 2MB/s
extern NSString *const GSUploadNetworkSpeedNotificationKey;


@interface NetworkStreamManager : NSObject

// 每秒下载速度
@property (nonatomic, copy, readonly) NSString *downloadNetworkSpeed;

// 每秒上传速度
@property (nonatomic, copy, readonly) NSString *uploadNetworkSpeed;

// 当前总下载速度
@property (nonatomic, assign, readonly) double totalDownloadKb;

// 当前总上传速度
@property (nonatomic, assign, readonly) double totalUploadKb;

+ (instancetype)shared;
- (void)start;
- (void)stop;

@end

NS_ASSUME_NONNULL_END
